package com.ronghui.cash.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ronghui.cash.dto.AddressJson;
import com.ronghui.cash.entity.Address;
import com.ronghui.cash.mapper.AddressMapper;
import com.ronghui.cash.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements AddressService {

    @Autowired
    private AddressMapper addressMapper;

    @Override
    public List<AddressJson> selectAddressJsonByParentId(long parentId) {

        return addressMapper.selectAddressJsonByParentId(parentId);
    }
}
